<html>
<!--
  Copyright 2010 Scott Logic Ltd.
  http://www.scottlogic.co.uk

  This file is part of Closure Charts.

  Closure Charts is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Closure Charts is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Closure Charts.  If not, see <http://www.gnu.org/licenses/>.
-->
<head>
<title>JavaScript Charting Example</title>
<script type="text/javascript">
function g(a){throw a;}var i=true,l=null,o=false;function aa(){return function(a){return a}}function ba(){return function(){}}function ca(a){return function(){return this[a]}}var r,s=this;function t(){}
function da(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function ea(a){return da(a)=="array"}function fa(a){var b=da(a);return b=="array"||b=="object"&&typeof a.length=="number"}function u(a){return typeof a=="string"}function v(a){return typeof a=="number"}function ga(a){return da(a)=="function"}function ha(a){a=da(a);return a=="object"||a=="array"||a=="function"}function ia(a){return a[ja]||(a[ja]=++ka)}
var ja="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ka=0;function la(a){return a.call.apply(a.bind,arguments)}function ma(a,b){var c=b||s;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}}
function na(){na=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?la:ma;return na.apply(l,arguments)}var oa=Date.now||function(){return+new Date};function w(a,b){function c(){}c.prototype=b.prototype;a.o=b.prototype;a.prototype=new c;a.prototype.constructor=a};function pa(a){this.stack=Error().stack||"";if(a)this.message=String(a)}w(pa,Error);pa.prototype.name="CustomError";function qa(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}function ra(a,b){if(b)return a.replace(sa,"&amp;").replace(ta,"&lt;").replace(ua,"&gt;").replace(va,"&quot;");else{if(!wa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(sa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(ta,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(ua,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(va,"&quot;");return a}}
var sa=/&/g,ta=/</g,ua=/>/g,va=/\"/g,wa=/[&<>\"]/;function x(a,b,c){a=c!==undefined?a.toFixed(c):String(a);c=a.indexOf(".");if(c==-1)c=a.length;return Array(Math.max(0,b-c)+1).join("0")+a}
function xa(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),h=0;c==0&&h<f;h++){var j=d[h]||"",k=e[h]||"",m=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=m.exec(j)||["","",""],p=n.exec(k)||["","",""];if(q[0].length==0&&p[0].length==0)break;c=ya(q[1].length==0?0:parseInt(q[1],10),p[1].length==0?0:parseInt(p[1],10))||ya(q[2].length==0,p[2].length==0)||ya(q[2],p[2])}while(c==
0)}return c}function ya(a,b){if(a<b)return-1;else if(a>b)return 1;return 0}var za=Math.random()*2147483648|0;function Aa(a,b){b.unshift(a);pa.call(this,qa.apply(l,b));b.shift();this.je=a}w(Aa,pa);Aa.prototype.name="AssertionError";function Ba(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}g(new Aa(""+d,e||[]))}return a};function y(a,b,c,d,e,f){if(u(a)){this.z=a==Ca?b:0;this.t=a==Da?b:0;this.p=a==Ea?b:0;this.A=a==Fa?b:0;this.B=a==Ga?b:0;this.P=a==Ha?b:0}else{this.z=a||0;this.t=b||0;this.p=c||0;this.A=d||0;this.B=e||0;this.P=f||0}}
y.prototype.qb=function(a){var b=Math.min(this.z,this.t,this.p,this.A,this.B,this.P),c=Math.max(this.z,this.t,this.p,this.A,this.B,this.P);if(b<0&&c>0)return l;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");if(this.z||a)c.push(Math.abs(this.z)+"Y");if(this.t||a)c.push(Math.abs(this.t)+"M");if(this.p||a)c.push(Math.abs(this.p)+"D");if(this.A||this.B||this.P||a){c.push("T");if(this.A||a)c.push(Math.abs(this.A)+"H");if(this.B||a)c.push(Math.abs(this.B)+"M");if(this.P||a)c.push(Math.abs(this.P)+
"S")}return c.join("")};y.prototype.wa=function(a){return a.z==this.z&&a.t==this.t&&a.p==this.p&&a.A==this.A&&a.B==this.B&&a.P==this.P};y.prototype.ia=function(){return new y(this.z,this.t,this.p,this.A,this.B,this.P)};var Ca="y",Da="m",Ea="d",Fa="h",Ga="n",Ha="s";y.prototype.add=function(a){this.z+=a.z;this.t+=a.t;this.p+=a.p;this.A+=a.A;this.B+=a.B;this.P+=a.P};
function Ia(a,b,c){if(v(a)){this.b=new Date(a,b||0,c||1);Ja(this,c||1)}else if(ha(a)){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate());Ja(this,a.getDate())}else{this.b=new Date;this.b.setHours(0);this.b.setMinutes(0);this.b.setSeconds(0);this.b.setMilliseconds(0)}}r=Ia.prototype;r.Ha=0;r.Ia=3;r.ia=function(){var a=new Ia(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};r.getFullYear=function(){return this.b.getFullYear()};r.getYear=function(){return this.getFullYear()};r.getMonth=function(){return this.b.getMonth()};
r.getDate=function(){return this.b.getDate()};r.getTime=function(){return this.b.getTime()};r.getDay=function(){return this.b.getDay()};r.getUTCFullYear=function(){return this.b.getUTCFullYear()};r.getUTCMonth=function(){return this.b.getUTCMonth()};r.getUTCDate=function(){return this.b.getUTCDate()};r.getUTCDay=function(){return this.b.getDay()};r.getUTCHours=function(){return this.b.getUTCHours()};r.getUTCMinutes=function(){return this.b.getUTCMinutes()};
function Ka(a){var b=a.getFullYear(),c=a.getMonth(),d=a.getDate();b=new Date(b,c,d);c=a.Ia||3;d=a.Ha||0;a=((b.getDay()+6)%7-d+7)%7;c=(c-d+7)%7;a=b.valueOf()+(c-a)*864E5;b=(new Date((new Date(a)).getFullYear(),0,1)).valueOf();return Math.floor(Math.round((a-b)/864E5)/7)+1}r.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};function La(a){a=a.getTimezoneOffset();if(a==0)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b);a=(a>0?"-":"+")+x(c,2)+":"+x((b-c)*60,2)}return a}r.setFullYear=function(a){this.b.setFullYear(a)};
r.setMonth=function(a){this.b.setMonth(a)};r.setDate=function(a){this.b.setDate(a)};r.setUTCFullYear=function(a){this.b.setUTCFullYear(a)};r.setUTCMonth=function(a){this.b.setUTCMonth(a)};r.setUTCDate=function(a){this.b.setUTCDate(a)};
r.add=function(a){if(a.z||a.t){var b=this.getMonth()+a.t+a.z*12,c=this.getYear()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d;a:{switch(b){case 1:d=c%4==0&&(c%100!=0||c%400==0)?29:28;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}if(a.p){b=new Date(this.getYear(),this.getMonth(),this.getDate(),12);a=new Date(b.getTime()+a.p*864E5);this.setDate(1);this.setFullYear(a.getFullYear());this.setMonth(a.getMonth());
this.setDate(a.getDate());Ja(this,a.getDate())}};r.qb=function(a,b){return[this.getFullYear(),x(this.getMonth()+1,2),x(this.getDate(),2)].join(a?"-":"")+(b?La(this):"")};r.wa=function(a){return this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};r.toString=function(){return this.qb()};function Ja(a,b){if(a.getDate()!=b)a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}r.valueOf=function(){return this.b.valueOf()};
function A(a,b,c,d,e,f,h){this.b=v(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a?a.getTime():oa())}w(A,Ia);r=A.prototype;r.getHours=function(){return this.b.getHours()};r.getMinutes=function(){return this.b.getMinutes()};r.getSeconds=function(){return this.b.getSeconds()};r.getMilliseconds=function(){return this.b.getMilliseconds()};r.getUTCDay=function(){return this.b.getUTCDay()};r.getUTCHours=function(){return this.b.getUTCHours()};r.getUTCMinutes=function(){return this.b.getUTCMinutes()};
r.getUTCSeconds=function(){return this.b.getUTCSeconds()};r.getUTCMilliseconds=function(){return this.b.getUTCMilliseconds()};r.setHours=function(a){this.b.setHours(a)};r.setMinutes=function(a){this.b.setMinutes(a)};r.setSeconds=function(a){this.b.setSeconds(a)};r.setMilliseconds=function(a){this.b.setMilliseconds(a)};r.setUTCHours=function(a){this.b.setUTCHours(a)};r.setUTCMinutes=function(a){this.b.setUTCMinutes(a)};r.setUTCSeconds=function(a){this.b.setUTCSeconds(a)};r.setUTCMilliseconds=function(a){this.b.setUTCMilliseconds(a)};
r.add=function(a){Ia.prototype.add.call(this,a);a.A&&this.setHours(this.b.getHours()+a.A);a.B&&this.setMinutes(this.b.getMinutes()+a.B);a.P&&this.setSeconds(this.b.getSeconds()+a.P)};r.qb=function(a,b){var c=Ia.prototype.qb.call(this,a);if(a)return c+" "+x(this.getHours(),2)+":"+x(this.getMinutes(),2)+":"+x(this.getSeconds(),2)+(b?La(this):"");return c+"T"+x(this.getHours(),2)+x(this.getMinutes(),2)+x(this.getSeconds(),2)+(b?La(this):"")};r.wa=function(a){return this.getTime()==a.getTime()};
r.toString=function(){return this.qb()};r.ia=function(){var a=new A(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};function B(a,b,c,d,e,f,h){a=v(a)?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():oa();this.b=new Date(a)}w(B,A);r=B.prototype;r.ia=function(){var a=new B(this.b);a.Ha=this.Ha;a.Ia=this.Ia;return a};r.add=function(a){if(a.z||a.t)Ia.prototype.add.call(this,new y(a.z,a.t));this.b=new Date(this.b.getTime()+1E3*(a.P+60*(a.B+60*(a.A+24*a.p))))};r.getTimezoneOffset=function(){return 0};r.getFullYear=A.prototype.getUTCFullYear;r.getMonth=A.prototype.getUTCMonth;r.getDate=A.prototype.getUTCDate;
r.getHours=A.prototype.getUTCHours;r.getMinutes=A.prototype.getUTCMinutes;r.getSeconds=A.prototype.getUTCSeconds;r.getMilliseconds=A.prototype.getUTCMilliseconds;r.getDay=A.prototype.getUTCDay;r.setFullYear=A.prototype.setUTCFullYear;r.setMonth=A.prototype.setUTCMonth;r.setDate=A.prototype.setUTCDate;r.setHours=A.prototype.setUTCHours;r.setMinutes=A.prototype.setUTCMinutes;r.setSeconds=A.prototype.setUTCSeconds;r.setMilliseconds=A.prototype.setUTCMilliseconds;function C(a,b){this.Q=a;this.C=b};var D=Array.prototype,Ma=D.indexOf?function(a,b,c){Ba(a.length!=l);return D.indexOf.call(a,b,c)}:function(a,b,c){c=c==l?0:c<0?Math.max(0,a.length+c):c;if(u(a)){if(!u(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=D.forEach?function(a,b,c){Ba(a.length!=l);D.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Oa=D.map?function(a,b,c){Ba(a.length!=l);return D.map.call(a,b,
c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=u(a)?a.split(""):a,h=0;h<d;h++)if(h in f)e[h]=b.call(c,f[h],h,a);return e};function Pa(a,b){var c=Ma(a,b),d;if(d=c>=0){Ba(a.length!=l);D.splice.call(a,c,1)}return d}function Qa(){return D.concat.apply(D,arguments)}function Ra(a){if(ea(a))return Qa(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}function Sa(a){Ba(a.length!=l);return D.splice.apply(a,Ta(arguments,1))}
function Ta(a,b,c){Ba(a.length!=l);return arguments.length<=2?D.slice.call(a,b):D.slice.call(a,b,c)}function Ua(a,b,c){c=c||Va;for(var d=0,e=a.length,f;d<e;){var h=d+e>>1,j;j=c(b,a[h]);if(j>0)d=h+1;else{e=h;f=!j}}return f?d:~d}function Va(a,b){return a>b?1:a<b?-1:0};function E(a){return a*Math.PI/180};var Wa=/#(.)(.)(.)/;function Xa(a){a=a;if(!Ya.test(a))g(Error("'"+a+"' is not a valid hex color"));if(a.length==4)a=a.replace(Wa,"#$1$1$2$2$3$3");a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}
function Za(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)g(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));a=$a(a.toString(16));b=$a(b.toString(16));c=$a(c.toString(16));return"#"+a+b+c}var Ya=/^#(?:[0-9a-f]{3}){1,2}$/i;function $a(a){return a.length==1?"0"+a:a}
function ab(a,b){var c=[255,255,255],d;d=Math.min(Math.max(b,0),1);return[Math.round(d*c[0]+(1-d)*a[0]),Math.round(d*c[1]+(1-d)*a[1]),Math.round(d*c[2]+(1-d)*a[2])]};var bb,cb,db,eb,fb;function gb(){return s.navigator?s.navigator.userAgent:l}fb=eb=db=cb=bb=o;var hb;if(hb=gb()){var ib=s.navigator;bb=hb.indexOf("Opera")==0;cb=!bb&&hb.indexOf("MSIE")!=-1;eb=(db=!bb&&hb.indexOf("WebKit")!=-1)&&hb.indexOf("Mobile")!=-1;fb=!bb&&!db&&ib.product=="Gecko"}var jb=bb,F=cb,kb=fb,lb=db,mb=eb,nb=s.navigator,ob=(nb&&nb.platform||"").indexOf("Mac")!=-1,pb;
a:{var qb="",rb;if(jb&&s.opera){var sb=s.opera.version;qb=typeof sb=="function"?sb():sb}else{if(kb)rb=/rv\:([^\);]+)(\)|;)/;else if(F)rb=/MSIE\s+([^\);]+)(\)|;)/;else if(lb)rb=/WebKit\/(\S+)/;if(rb){var tb=rb.exec(gb());qb=tb?tb[1]:""}}if(F){var ub,vb=s.document;ub=vb?vb.documentMode:undefined;if(ub>parseFloat(qb)){pb=String(ub);break a}}pb=qb}var wb={};function xb(a){return wb[a]||(wb[a]=xa(pb,a)>=0)};var yb,zb=!F||xb("9");F&&xb("9");function Ab(a){var b;b=(b=a.className)&&typeof b.split=="function"?b.split(/\s+/):[];var c;c=Ta(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(Ma(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c};function G(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0}G.prototype.ia=function(){return new G(this.x,this.y)};G.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function H(a,b){this.width=a;this.height=b}r=H.prototype;r.ia=function(){return new H(this.width,this.height)};r.toString=function(){return"("+this.width+" x "+this.height+")"};r.Fb=function(){return!(this.width*this.height)};r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};r.scale=function(a){this.width*=a;this.height*=a;return this};function Bb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Cb(a,b){var c;if(c=b in a)delete a[b];return c}var Db=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];function Eb(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Db.length;e++){b=Db[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};function Fb(a){return a?new Gb(Hb(a)):yb||(yb=new Gb)}function Ib(a,b){Bb(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Jb)a.setAttribute(Jb[d],c);else a[d]=c})}var Jb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};function Kb(){return Lb(document,arguments)}
function Lb(a,b){var c=b[0],d=b[1];if(!zb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ra(d.name),'"');if(d.type){c.push(' type="',ra(d.type),'"');var e={};Eb(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)if(u(d))c.className=d;else ea(d)?Ab.apply(l,[c].concat(d)):Ib(c,d);b.length>2&&Mb(a,c,b,2);return c}
function Mb(a,b,c,d){function e(h){if(h)b.appendChild(u(h)?a.createTextNode(h):h)}for(d=d;d<c.length;d++){var f=c[d];fa(f)&&!(ha(f)&&f.nodeType>0)?Na(Nb(f)?Ra(f):f,e):e(f)}}function Ob(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Pb(a){return a&&a.parentNode?a.parentNode.removeChild(a):l}function Hb(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function Nb(a){if(a&&typeof a.length=="number")if(ha(a))return typeof a.item=="function"||typeof a.item=="string";else if(ga(a))return typeof a.item=="function";return o}function Gb(a){this.Y=a||s.document||document}r=Gb.prototype;r.c=function(a){return u(a)?this.Y.getElementById(a):a};r.U=function(){return Lb(this.Y,arguments)};r.createElement=function(a){return this.Y.createElement(a)};r.createTextNode=function(a){return this.Y.createTextNode(a)};
function Qb(a){a=!lb&&a.Y.compatMode=="CSS1Compat"?a.Y.documentElement:a.Y.body;return new G(a.scrollLeft,a.scrollTop)}r.appendChild=function(a,b){a.appendChild(b)};r.removeNode=Pb;r.contains=function(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Rb;!F||xb("9");F&&xb("8");function I(){}I.prototype.Mc=o;I.prototype.ja=function(){if(!this.Mc){this.Mc=i;this.g()}};I.prototype.g=ba();function J(a,b){this.type=a;this.currentTarget=this.target=b}w(J,I);J.prototype.g=function(){delete this.type;delete this.target;delete this.currentTarget};J.prototype.Za=o;J.prototype.Nb=i;function Sb(a,b){a&&this.Cb(a,b)}w(Sb,J);r=Sb.prototype;r.target=l;r.relatedTarget=l;r.offsetX=0;r.offsetY=0;r.clientX=0;r.clientY=0;r.screenX=0;r.screenY=0;r.button=0;r.keyCode=0;r.charCode=0;r.ctrlKey=o;r.altKey=o;r.shiftKey=o;r.metaKey=o;r.Od=o;r.Oc=l;
r.Cb=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(kb)try{d=d.nodeName&&d}catch(e){d=l}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;
this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Od=ob?a.metaKey:a.ctrlKey;this.Vd=a.Vd;this.Oc=a;delete this.Nb;delete this.Za};r.g=function(){Sb.o.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.Oc=l};function Tb(){}var Ub=0;r=Tb.prototype;r.key=0;r.$a=o;r.Ec=o;r.Cb=function(a,b,c,d,e,f){if(ga(a))this.Xc=i;else if(a&&a.handleEvent&&ga(a.handleEvent))this.Xc=o;else g(Error("Invalid listener argument"));this.Ya=a;this.fd=b;this.src=c;this.type=d;this.capture=!!e;this.Ab=f;this.Ec=o;this.key=++Ub;this.$a=o};r.handleEvent=function(a){if(this.Xc)return this.Ya.call(this.Ab||this.src,a);return this.Ya.handleEvent.call(this.Ya,a)};function K(a,b){this.ad=b;this.Ja=[];if(a>this.ad)g(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.Ja.push(this.va?this.va():{})}w(K,I);K.prototype.va=l;K.prototype.Lc=l;function Vb(a){if(a.Ja.length)return a.Ja.pop();return a.va?a.va():{}}function Wb(a,b){a.Ja.length<a.ad?a.Ja.push(b):Xb(a,b)}function Xb(a,b){if(a.Lc)a.Lc(b);else if(ha(b))if(ga(b.ja))b.ja();else for(var c in b)delete b[c]}
K.prototype.g=function(){K.o.g.call(this);for(var a=this.Ja;a.length;)Xb(this,a.pop());delete this.Ja};var Yb;var Zb=(Yb="ScriptEngine"in s&&s.ScriptEngine()=="JScript")?s.ScriptEngineMajorVersion()+"."+s.ScriptEngineMinorVersion()+"."+s.ScriptEngineBuildVersion():"0";var $b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc;
(function(){function a(){return{n:0,fa:0}}function b(){return[]}function c(){function p(z){return h.call(p.src,p.key,z)}return p}function d(){return new Tb}function e(){return new Sb}var f=Yb&&!(xa(Zb,"5.7")>=0),h;ec=function(p){h=p};if(f){$b=function(){return Vb(j)};ac=function(p){Wb(j,p)};bc=function(){return Vb(k)};cc=function(p){Wb(k,p)};dc=function(){return Vb(m)};fc=function(){Wb(m,c())};gc=function(){return Vb(n)};hc=function(p){Wb(n,p)};ic=function(){return Vb(q)};jc=function(p){Wb(q,p)};
var j=new K(0,600);j.va=a;var k=new K(0,600);k.va=b;var m=new K(0,600);m.va=c;var n=new K(0,600);n.va=d;var q=new K(0,600);q.va=e}else{$b=a;ac=t;bc=b;cc=t;dc=c;fc=t;gc=d;hc=t;ic=e;jc=t}})();var kc={},L={},M={},lc={};
function mc(a,b,c,d,e){if(b)if(ea(b)){for(var f=0;f<b.length;f++)mc(a,b[f],c,d,e);return l}else{d=!!d;var h=L;b in h||(h[b]=$b());h=h[b];if(!(d in h)){h[d]=$b();h.n++}h=h[d];var j=ia(a),k;h.fa++;if(h[j]){k=h[j];for(f=0;f<k.length;f++){h=k[f];if(h.Ya==c&&h.Ab==e){if(h.$a)break;return k[f].key}}}else{k=h[j]=bc();h.n++}f=dc();f.src=a;h=gc();h.Cb(c,f,a,b,d,e);c=h.key;f.key=c;k.push(h);kc[c]=h;M[j]||(M[j]=bc());M[j].push(h);if(a.addEventListener){if(a==s||!a.Xb)a.addEventListener(b,f,d)}else a.attachEvent(nc(b),
f);return c}else g(Error("Invalid event type"))}function oc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)oc(a,b[f],c,d,e);return l}d=!!d;a=pc(a,b,d);if(!a)return o;for(f=0;f<a.length;f++)if(a[f].Ya==c&&a[f].capture==d&&a[f].Ab==e)return qc(a[f].key);return o}
function qc(a){if(!kc[a])return o;var b=kc[a];if(b.$a)return o;var c=b.src,d=b.type,e=b.fd,f=b.capture;if(c.removeEventListener){if(c==s||!c.Xb)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(nc(d),e);c=ia(c);e=L[d][f][c];if(M[c]){var h=M[c];Pa(h,b);h.length==0&&delete M[c]}b.$a=i;e.bd=i;rc(d,f,c,e);delete kc[a];return i}
function rc(a,b,c,d){if(!d.Gb)if(d.bd){for(var e=0,f=0;e<d.length;e++)if(d[e].$a){var h=d[e].fd;h.src=l;fc(h);hc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.bd=o;if(f==0){cc(d);delete L[a][b][c];L[a][b].n--;if(L[a][b].n==0){ac(L[a][b]);delete L[a][b];L[a].n--}if(L[a].n==0){ac(L[a]);delete L[a]}}}}
function sc(a,b,c){var d=0,e=b==l,f=c==l;c=!!c;if(a==l)Bb(M,function(k){for(var m=k.length-1;m>=0;m--){var n=k[m];if((e||b==n.type)&&(f||c==n.capture)){qc(n.key);d++}}});else{a=ia(a);if(M[a]){a=M[a];for(var h=a.length-1;h>=0;h--){var j=a[h];if((e||b==j.type)&&(f||c==j.capture)){qc(j.key);d++}}}}return d}function pc(a,b,c){var d=L;if(b in d){d=d[b];if(c in d){d=d[c];a=ia(a);if(d[a])return d[a]}}return l}function nc(a){if(a in lc)return lc[a];return lc[a]="on"+a}
function tc(a,b,c,d,e){var f=1;b=ia(b);if(a[b]){a.fa--;a=a[b];if(a.Gb)a.Gb++;else a.Gb=1;try{for(var h=a.length,j=0;j<h;j++){var k=a[j];if(k&&!k.$a)f&=uc(k,e)!==o}}finally{a.Gb--;rc(c,d,b,a)}}return Boolean(f)}function uc(a,b){var c=a.handleEvent(b);a.Ec&&qc(a.key);return c}
ec(function(a,b){if(!kc[a])return i;var c=kc[a],d=c.type,e=L;if(!(d in e))return i;e=e[d];var f,h;if(Rb===undefined)Rb=F&&!s.addEventListener;if(Rb){var j;if(!(j=b))a:{j="window.event".split(".");for(var k=s;f=j.shift();)if(k[f])k=k[f];else{j=l;break a}j=k}f=j;j=i in e;k=o in e;if(j){if(f.keyCode<0||f.returnValue!=undefined)return i;a:{var m=o;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(n){m=i}if(m||f.returnValue==undefined)f.returnValue=i}}m=ic();m.Cb(f,this);f=i;try{if(j){for(var q=bc(),p=m.currentTarget;p;p=
p.parentNode)q.push(p);h=e[i];h.fa=h.n;for(var z=q.length-1;!m.Za&&z>=0&&h.fa;z--){m.currentTarget=q[z];f&=tc(h,q[z],d,i,m)}if(k){h=e[o];h.fa=h.n;for(z=0;!m.Za&&z<q.length&&h.fa;z++){m.currentTarget=q[z];f&=tc(h,q[z],d,o,m)}}}else f=uc(c,m)}finally{if(q){q.length=0;cc(q)}m.ja();jc(m)}return f}d=new Sb(b,this);try{f=uc(c,d)}finally{d.ja()}return f});function N(){this.G=[];this.n=[];this.ta=[]}N.prototype.Ua=l;N.prototype.V=l;N.prototype.ab=i;var vc=[];vc[0]=2;vc[1]=2;vc[2]=6;vc[3]=6;vc[4]=0;r=N.prototype;r.clear=function(){this.G.length=0;this.n.length=0;this.ta.length=0;delete this.Ua;delete this.V;delete this.ab;return this};r.moveTo=function(a,b){if(this.G[this.G.length-1]==0)this.ta.length-=2;else{this.G.push(0);this.n.push(1)}this.ta.push(a,b);this.V=this.Ua=[a,b];return this};
r.lineTo=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with lineTo"));if(a!=1){this.G.push(1);this.n.push(0)}for(a=0;a<arguments.length;a+=2){var b=arguments[a],c=arguments[a+1];this.ta.push(b,c)}this.n[this.n.length-1]+=a/2;this.V=[b,c];return this};
r.Fc=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with curve"));if(a!=2){this.G.push(2);this.n.push(0)}for(a=0;a<arguments.length;a+=6){var b=arguments[a+4],c=arguments[a+5];this.ta.push(arguments[a],arguments[a+1],arguments[a+2],arguments[a+3],b,c)}this.n[this.n.length-1]+=a/6;this.V=[b,c];return this};r.close=function(){var a=this.G[this.G.length-1];if(a==l)g(Error("Path cannot start with close"));if(a!=4){this.G.push(4);this.n.push(1);this.V=this.Ua}return this};
r.arcTo=function(a,b,c,d){var e=this.V[0]-a*Math.cos(E(c))+a*Math.cos(E(c+d)),f=this.V[1]-b*Math.sin(E(c))+b*Math.sin(E(c+d));this.G.push(3);this.n.push(1);this.ta.push(a,b,c,d,e,f);this.ab=o;this.V=[e,f];return this};
r.td=function(a,b,c,d){var e=this.V[0]-a*Math.cos(E(c)),f=this.V[1]-b*Math.sin(E(c)),h=E(d);d=Math.ceil(Math.abs(h)/Math.PI*2);h=h/d;c=E(c);for(var j=0;j<d;j++){var k=Math.cos(c),m=Math.sin(c),n=4/3*Math.sin(h/2)/(1+Math.cos(h/2)),q=e+(k-n*m)*a,p=f+(m+n*k)*b;c+=h;k=Math.cos(c);m=Math.sin(c);this.Fc(q,p,e+(k+n*m)*a,f+(m-n*k)*b,e+k*a,f+m*b)}return this};function wc(a,b){for(var c=a.ta,d=0,e=0,f=a.G.length;e<f;e++){var h=a.G[e],j=vc[h]*a.n[e];b(h,c.slice(d,d+j));d+=j}}
r.ia=function(){var a=new this.constructor;a.G=this.G.concat();a.n=this.n.concat();a.ta=this.ta.concat();a.Ua=this.Ua&&this.Ua.concat();a.V=this.V&&this.V.concat();a.ab=this.ab;return a};var xc={};xc[0]=N.prototype.moveTo;xc[1]=N.prototype.lineTo;xc[4]=N.prototype.close;xc[2]=N.prototype.Fc;xc[3]=N.prototype.td;function yc(a){if(a.ab)return a.ia();var b=new N;wc(a,function(c,d){xc[c].apply(b,d)});return b}N.prototype.Fb=function(){return this.G.length==0};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}O.prototype.ia=function(){return new O(this.left,this.top,this.width,this.height)};O.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};O.prototype.contains=function(a){return a instanceof O?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function zc(a,b){var c;a:{c=Hb(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,l)){c=c[b]||c.getPropertyValue(b);break a}c=""}return c||(a.currentStyle?a.currentStyle[b]:l)||a.style[b]}function Ac(a){var b=a.getBoundingClientRect();if(F){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b}
function Bc(a){if(F)return a.offsetParent;var b=Hb(a),c=zc(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=zc(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return l}function Cc(a,b,c){if(b instanceof H){c=b.height;b=b.width}else{if(c==undefined)g(Error("missing height argument"));c=c}a.style.width=Dc(b,i);a.style.height=Dc(c,i)}
function Dc(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a}
function Ec(a){var b=jb&&!xb("10");if(zc(a,"display")!="none")return b?new H(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new H(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new H(b,a)};function Fc(a){this.Ka=a}w(Fc,I);var Gc=new K(0,100);function Hc(a,b,c,d,e,f){if(ea(c))for(var h=0;h<c.length;h++)Hc(a,b,c[h],d,e,f);else{b=mc(b,c,d||a,e||o,f||a.Ka||a);if(a.N)a.N[b]=i;else if(a.Ca){a.N=Vb(Gc);a.N[a.Ca]=i;a.Ca=l;a.N[b]=i}else a.Ca=b}return a}
function Ic(a,b,c,d,e,f){if(a.Ca||a.N)if(ea(c))for(var h=0;h<c.length;h++)Ic(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.Ka||a;e=!!e;if(b=pc(b,c,e))for(c=0;c<b.length;c++)if(b[c].Ya==d&&b[c].capture==e&&b[c].Ab==f){b=b[c];break a}b=l}if(b){b=b.key;qc(b);if(a.N)Cb(a.N,b);else if(a.Ca==b)a.Ca=l}}return a}function Jc(a){if(a.N){for(var b in a.N){qc(b);delete a.N[b]}Wb(Gc,a.N);a.N=l}else a.Ca&&qc(a.Ca)}Fc.prototype.g=function(){Fc.o.g.call(this);Jc(this)};Fc.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};function Kc(){}w(Kc,I);r=Kc.prototype;r.Xb=i;r.Lb=l;r.wc=function(a){this.Lb=a};r.addEventListener=function(a,b,c,d){mc(this,a,b,c,d)};r.removeEventListener=function(a,b,c,d){oc(this,a,b,c,d)};
r.dispatchEvent=function(a){a=a;if(u(a))a=new J(a,this);else if(a instanceof J)a.target=a.target||this;else{var b=a;a=new J(a.type,this);Eb(a,b)}b=1;var c,d=a.type,e=L;if(d in e){e=e[d];d=i in e;var f;if(d){c=[];for(f=this;f;f=f.Lb)c.push(f);f=e[i];f.fa=f.n;for(var h=c.length-1;!a.Za&&h>=0&&f.fa;h--){a.currentTarget=c[h];b&=tc(f,c[h],a.type,i,a)&&a.Nb!=o}}if(o in e){f=e[o];f.fa=f.n;if(d)for(h=0;!a.Za&&h<c.length&&f.fa;h++){a.currentTarget=c[h];b&=tc(f,c[h],a.type,o,a)&&a.Nb!=o}else for(c=this;!a.Za&&
c&&f.fa;c=c.Lb){a.currentTarget=c;b&=tc(f,c,a.type,o,a)&&a.Nb!=o}}a=Boolean(b)}else a=i;return a};r.g=function(){Kc.o.g.call(this);sc(this);this.Lb=l};function Lc(){}(function(a){a.Qc=function(){return a.Fd||(a.Fd=new a)}})(Lc);Lc.prototype.Nd=0;Lc.Qc();function P(a){this.ka=a||Fb();this.Td=Mc}w(P,Kc);P.prototype.Ed=Lc.Qc();var Mc=l;r=P.prototype;r.Ba=l;r.O=o;r.j=l;r.Td=l;r.Md=l;r.pa=l;r.ha=l;r.rb=l;r.Xd=o;r.c=ca("j");r.wc=function(a){if(this.pa&&this.pa!=a)g(Error("Method not supported"));P.o.wc.call(this,a)};r.U=function(){this.j=this.ka.createElement("div")};function Nc(a,b,c){if(a.O)g(Error("Component already rendered"));a.j||a.U();b?b.insertBefore(a.j,c||l):a.ka.Y.body.appendChild(a.j);if(!a.pa||a.pa.O)a.Aa()}
r.Aa=function(){this.O=i;Oc(this,function(a){!a.O&&a.c()&&a.Aa()})};r.ib=function(){Oc(this,function(a){a.O&&a.ib()});this.yb&&Jc(this.yb);this.O=o};r.g=function(){P.o.g.call(this);this.O&&this.ib();if(this.yb){this.yb.ja();delete this.yb}Oc(this,function(a){a.ja()});!this.Xd&&this.j&&Pb(this.j);this.pa=this.Md=this.j=this.rb=this.ha=l};function Oc(a,b,c){a.ha&&Na(a.ha,b,c)}
r.removeChild=function(a,b){if(a){var c=u(a)?a:a.Ba||(a.Ba=":"+(a.Ed.Nd++).toString(36)),d;if(this.rb&&c){d=this.rb;d=c in d?d[c]:void 0;d=d||l}else d=l;a=d;if(c&&a){Cb(this.rb,c);Pa(this.ha,a);if(b){a.ib();a.j&&Pb(a.j)}c=a;if(c==l)g(Error("Unable to set parent component"));c.pa=l;P.o.wc.call(c,l)}}if(!a)g(Error("Child is not in parent component"));return a};function Q(a,b,c,d,e){P.call(this,e);this.width=a;this.height=b;this.aa=c||l;this.fb=d||l}w(Q,P);r=Q.prototype;r.I=l;r.za=0;r.Fa=0;function Pc(a){return a.aa?new H(a.aa,a.fb):a.L()}r.L=function(){if(this.O)return Ec(this.c());if(v(this.width)&&v(this.height))return new H(this.width,this.height);return l};function Qc(a){var b=a.L();return b?b.width/Pc(a).width:0}function Rc(a,b,c,d,e,f,h,j,k,m,n,q){var p=k.size/2;d=j=="bottom"?d+f-p:j=="center"?d+f/2:d+p;return a.$b(b,c,d,c+e,d,h,k,m,n,q)}r.Qb=ba();
r.Mb=ba();function Sc(a,b,c,d,e,f){if(arguments.length==6)this.setTransform(a,b,c,d,e,f);else if(arguments.length!=0)g(Error("Insufficient matrix parameters"));else{this.ca=this.ea=1;this.Z=this.da=this.ma=this.na=0}}r=Sc.prototype;r.ia=function(){return new Sc(this.ca,this.Z,this.da,this.ea,this.ma,this.na)};r.setTransform=function(a,b,c,d,e,f){if(!v(a)||!v(b)||!v(c)||!v(d)||!v(e)||!v(f))g(Error("Invalid transform parameters"));this.ca=a;this.Z=b;this.da=c;this.ea=d;this.ma=e;this.na=f;return this};
r.scale=function(a,b){this.ca*=a;this.Z*=a;this.da*=b;this.ea*=b;return this};r.translate=function(a,b){this.ma+=a*this.ca+b*this.da;this.na+=a*this.Z+b*this.ea;return this};r.rotate=function(a,b,c){a=Tc(a,b,c);b=this.ca;c=this.da;this.ca=a.ca*b+a.Z*c;this.da=a.da*b+a.ea*c;this.ma+=a.ma*b+a.na*c;b=this.Z;c=this.ea;this.Z=a.ca*b+a.Z*c;this.ea=a.da*b+a.ea*c;this.na+=a.ma*b+a.na*c;return this};r.toString=function(){return"matrix("+[this.ca,this.Z,this.da,this.ea,this.ma,this.na].join(",")+")"};
function Tc(a,b,c){var d=new Sc,e=Math.cos(a);a=Math.sin(a);return d.setTransform(e,a,-a,e,b-b*e+c*a,c-b*a-c*e)}r.wa=function(a){if(this==a)return i;if(!a)return o;return this.ca==a.ca&&this.da==a.da&&this.ma==a.ma&&this.Z==a.Z&&this.ea==a.ea&&this.na==a.na};function R(a,b){this.j=a;this.h=b;this.Xb=o}w(R,Kc);r=R.prototype;r.h=l;r.j=l;r.Bc=l;r.c=ca("j");r.addEventListener=function(a,b,c,d){mc(this.j,a,b,c,d)};r.removeEventListener=function(a,b,c,d){oc(this.j,a,b,c,d)};r.g=function(){R.o.g.call(this);sc(this.j)};function S(a,b,c,d){R.call(this,a,b);this.K(c);this.kd(d)}w(S,R);r=S.prototype;r.fill=l;r.bb=l;r.kd=function(a){this.fill=a;this.h.rc(this,a)};r.Ad=ca("fill");r.K=function(a){this.bb=a;this.h.sc(this,a)};r.r=ca("bb");function Uc(a,b,c,d){S.call(this,a,b,c,d)}w(Uc,S);function Vc(a,b){R.call(this,a,b)}w(Vc,R);function Wc(a,b){R.call(this,a,b)}w(Wc,R);function Xc(a,b,c,d){S.call(this,a,b,c,d)}w(Xc,S);function Yc(a,b,c,d){S.call(this,a,b,c,d)}w(Yc,S);function Zc(a){R.call(this,l,a);this.ha=[]}w(Zc,Vc);Zc.prototype.clear=function(){if(this.ha.length){this.ha.length=0;this.h.u()}};Zc.prototype.appendChild=function(a){this.ha.push(a)};Zc.prototype.la=function(){for(var a=0,b=this.ha.length;a<b;a++)$c(this.h,this.ha[a])};function ad(a,b,c,d,e,f,h,j){S.call(this,a,b,h,j);this.Hc=c;this.Jc=d;this.mc=e;this.oc=f;this.i=new N;bd(this);this.jc=new cd(l,b,this.i,h,j)}w(ad,Uc);
function bd(a){a.i.clear();a.i.moveTo(a.Hc+a.mc*Math.cos(E(0)),a.Jc+a.oc*Math.sin(E(0)));a.i.arcTo(a.mc,a.oc,0,360);a.i.close()}ad.prototype.qc=function(a,b){this.Hc=a;this.Jc=b;bd(this);this.jc.ra(this.i)};ad.prototype.xc=function(a,b){this.mc=a;this.oc=b;bd(this);this.jc.ra(this.i)};ad.prototype.la=function(a){this.jc.la(a)};function cd(a,b,c,d,e){S.call(this,a,b,d,e);this.ra(c)}w(cd,Xc);cd.prototype.sb=o;cd.prototype.ra=function(a){this.i=a.ab?a:yc(a);this.sb&&this.h.u()};
cd.prototype.la=function(a){this.sb=i;a.beginPath();wc(this.i,function(b,c){switch(b){case 0:a.moveTo(c[0],c[1]);break;case 1:for(var d=0;d<c.length;d+=2)a.lineTo(c[d],c[d+1]);break;case 2:for(d=0;d<c.length;d+=6)a.bezierCurveTo(c[d],c[d+1],c[d+2],c[d+3],c[d+4],c[d+5]);break;case 3:g(Error("Canvas paths cannot contain arcs"));case 4:a.closePath()}})};
function dd(a,b,c,d,e,f,h,j,k,m){S.call(this,l,a,k,m);this.cb=b;this.pd=c;this.Yd=d;this.qd=e;this.Zd=f;this.sd=h||"left";this.jb=j;this.j=Kb("DIV",{style:"display:table;position:absolute;padding:0;margin:0;border:0"});this.Db=Kb("DIV",{style:"display:table-cell;padding: 0;margin: 0;border: 0"});c=this.pd;j=this.qd;d=this.Yd;e=this.Zd;k=this.sd;f=this.jb;b=this.j.style;h=Qc(this.h);m=this.h;var n=m.L();m=n?n.height/Pc(m).height:0;if(c==j){b.lineHeight="90%";this.Db.style.verticalAlign=k=="center"?
"middle":k=="left"?d<e?"top":"bottom":d<e?"bottom":"top";b.textAlign="center";j=f.size*h;b.top=Math.round(Math.min(d,e)*m)+"px";b.left=Math.round((c-j/2)*h)+"px";b.width=Math.round(j)+"px";b.height=Math.abs(d-e)*m+"px";b.fontSize=f.size*0.6*m+"px"}else{b.lineHeight="100%";this.Db.style.verticalAlign="top";b.textAlign=k;b.top=Math.round(((d+e)/2-f.size*2/3)*m)+"px";b.left=Math.round(c*h)+"px";b.width=Math.round(Math.abs(j-c)*h)+"px";b.height="auto";b.fontSize=f.size*m+"px"}b.fontWeight=f.bold?"bold":
"normal";b.fontStyle=f.gc?"italic":"normal";b.fontFamily=f.Va;c=this.fill;b.color=c.C||c.Pc();this.Db.innerHTML=this.pd==this.qd?Oa(this.cb.split(""),ra).join("<br>"):ra(this.cb);a.c().appendChild(this.j);this.j.appendChild(this.Db)}w(dd,Yc);dd.prototype.kd=function(a){this.fill=a;if(this.j)this.j.style.color=a.C||a.Pc()};dd.prototype.K=ba();dd.prototype.la=ba();function ed(a,b,c,d,e,f,h){R.call(this,a,b);this.Qa=c;this.Ra=d;this.nd=e;this.Rc=f;this.Ud=h}w(ed,Wc);ed.prototype.sb=o;
ed.prototype.la=function(a){if(this.Tc){this.nd&&this.Rc&&a.drawImage(this.Tc,this.Qa,this.Ra,this.nd,this.Rc);this.sb=i}else{a=new Image;a.onload=na(this.Cd,this,a);a.src=this.Ud}};ed.prototype.Cd=function(a){this.Tc=a;this.h.u()};function fd(a,b){this.size=a;this.Va=b}fd.prototype.bold=o;fd.prototype.gc=o;function gd(){};function hd(a,b){this.C=a;this.mb=b||1}w(hd,gd);function id(a,b,c,d,e){Q.call(this,a,b,c,d,e)}w(id,Q);r=id.prototype;r.rc=function(){this.u()};r.sc=function(){this.u()};r.tc=function(){this.u()};function jd(a,b){var c=a.getContext();c.save();var d=b.Bc?b.Bc.ia():new Sc,e=d.ma,f=d.na;if(e||f)c.translate(e,f);(d=d.Z)&&c.rotate(Math.asin(d))}r.U=function(){var a=this.ka.U("div",{style:"position:relative;overflow:hidden"});this.j=a;this.ua=this.ka.U("canvas");a.appendChild(this.ua);this.Hd=this.I=new Zc(this);this.Pd=0;kd(this)};
r.getContext=function(){this.c()||this.U();if(!this.$){this.$=this.ua.getContext("2d");this.$.save()}return this.$};r.L=function(){var a=this.width,b=this.height,c=u(a)&&a.indexOf("%")!=-1,d=u(b)&&b.indexOf("%")!=-1;if(!this.O&&(c||d))return l;var e,f;if(c){e=this.c().parentNode;f=Ec(e);a=parseFloat(a)*f.width/100}if(d){e=e||this.c().parentNode;f=f||Ec(e);b=parseFloat(b)*f.height/100}return new H(a,b)};
function kd(a){Cc(a.c(),a.width,a.height);var b=a.L();if(b){Cc(a.ua,b.width,b.height);a.ua.width=b.width;a.ua.height=b.height;a.$=l}}r.reset=function(){var a=this.getContext();a.restore();var b=this.L();b.width&&b.height&&a.clearRect(0,0,b.width,b.height);a.save()};r.clear=function(){this.reset();this.I.clear();for(var a=this.c();a.childNodes.length>1;)a.removeChild(a.lastChild)};
r.u=function(){if(this.nb)this.lb=i;else if(this.O){this.reset();if(this.aa){var a=this.L();this.getContext().scale(a.width/this.aa,a.height/this.fb)}if(this.za||this.Fa)this.getContext().translate(-this.za,-this.Fa);jd(this,this.I);this.I.la(this.$);this.getContext().restore()}};
function $c(a,b){if(!(b instanceof dd)){var c=a.getContext();jd(a,b);if(!b.Ad||!b.r)b.la(c);else{var d=b.fill;if(d)if(d instanceof hd){if(d.mb!=0){c.globalAlpha=d.mb;c.fillStyle=d.C;b.la(c);c.fill();c.globalAlpha=1}}else{var e=c.createLinearGradient(d.ee(),d.ge(),d.fe(),d.he());e.addColorStop(0,d.Pc());e.addColorStop(1,d.de());c.fillStyle=e;b.la(c);c.fill()}if(d=b.r()){b.la(c);c.strokeStyle=d.C;d=d.Q;if(u(d)&&d.indexOf("px")!=-1)d=parseFloat(d)/Qc(a);c.lineWidth=d;c.stroke()}}a.getContext().restore()}}
r.R=function(a,b){b=b||this.I;b.appendChild(a);this.O&&!this.Pd&&!(b!=this.I&&b!=this.Hd)&&$c(this,a)};r.Zb=function(a,b,c,d,e,f,h){a=new ad(l,this,a,b,c,d,e,f);this.R(a,h);return a};r.drawImage=function(a,b,c,d,e,f){a=new ed(l,this,a,b,c,d,e);this.R(a,f);return a};r.$b=function(a,b,c,d,e,f,h,j,k,m){a=new dd(this,a,b,c,d,e,f,h,j,k);this.R(a,m);return a};r.Ga=function(a,b,c,d){a=new cd(l,this,a,b,c);this.R(a,d);return a};r.g=function(){this.$=l;id.o.g.call(this)};
r.Aa=function(){var a=this.L();id.o.Aa.call(this);if(!a){kd(this);this.dispatchEvent("resize")}this.u()};r.Qb=function(){this.nb=i};r.Mb=function(){this.nb=o;if(this.lb){this.u();this.lb=o}};r.wb=function(a,b){var c=Fb(),d=c.U("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};function ld(a,b){this.Eb=a||1;this.pb=b||md;this.Vb=na(this.Wd,this);this.ic=oa()}w(ld,Kc);ld.prototype.enabled=o;var md=s.window;r=ld.prototype;r.Na=l;r.Wd=function(){if(this.enabled){var a=oa()-this.ic;if(a>0&&a<this.Eb*0.8)this.Na=this.pb.setTimeout(this.Vb,this.Eb-a);else{this.dispatchEvent(nd);if(this.enabled){this.Na=this.pb.setTimeout(this.Vb,this.Eb);this.ic=oa()}}}};r.start=function(){this.enabled=i;if(!this.Na){this.Na=this.pb.setTimeout(this.Vb,this.Eb);this.ic=oa()}};
r.stop=function(){this.enabled=o;if(this.Na){this.pb.clearTimeout(this.Na);this.Na=l}};r.g=function(){ld.o.g.call(this);this.stop();delete this.pb};var nd="tick";function od(a,b){R.call(this,a,b)}w(od,Vc);od.prototype.clear=function(){Ob(this.c())};function pd(a,b,c,d){S.call(this,a,b,c,d)}w(pd,Uc);pd.prototype.qc=function(a,b){qd(this.h,this.c(),{cx:a,cy:b})};pd.prototype.xc=function(a,b){qd(this.h,this.c(),{rx:a,ry:b})};function rd(a,b,c,d){S.call(this,a,b,c,d)}w(rd,Xc);rd.prototype.ra=function(a){a=a.Fb()?{}:{d:sd(a)};qd(this.h,this.c(),a)};function td(a,b,c,d){S.call(this,a,b,c,d)}w(td,Yc);function ud(a,b){R.call(this,a,b)}w(ud,Wc);function vd(a,b,c,d,e){Q.call(this,a,b,c,d,e);this.Kc={};this.Cc=lb&&!xb(526);this.Ka=new Fc(this)}var wd;w(vd,Q);function xd(a,b,c){b=a.ka.Y.createElementNS("http://www.w3.org/2000/svg",b);c&&qd(a,b,c);return b}function qd(a,b,c){for(var d in c)b.setAttribute(d,c[d])}r=vd.prototype;r.R=function(a,b){(b||this.I).c().appendChild(a.c())};r.rc=function(a,b){var c=a.c();if(b instanceof hd){c.setAttribute("fill",b.C);c.setAttribute("fill-opacity",b.mb)}else c.setAttribute("fill","none")};
r.sc=function(a,b){var c=a.c();if(b){c.setAttribute("stroke",b.C);var d=b.Q;u(d)&&d.indexOf("px")!=-1?c.setAttribute("stroke-width",parseFloat(d)/Qc(this)):c.setAttribute("stroke-width",d)}else c.setAttribute("stroke","none")};r.tc=function(a,b,c,d,e,f){a.c().setAttribute("transform","translate("+b+","+c+") rotate("+d+" "+e+" "+f+")")};
r.U=function(){var a=xd(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=xd(this,"g");this.Yb=xd(this,"defs");this.I=new od(b,this);a.appendChild(this.Yb);a.appendChild(b);this.j=a;if(this.aa||this.za||this.Fa){this.c().setAttribute("preserveAspectRatio","none");this.Cc?this.Sb():this.c().setAttribute("viewBox",this.za+" "+this.Fa+" "+(this.aa?this.aa+" "+this.fb:""))}};
r.Sb=function(){if(this.O&&(this.aa||this.za||!this.Fa)){var a=this.L();if(a.width==0)this.c().style.visibility="hidden";else{this.c().style.visibility="";var b=-this.za,c=-this.Fa,d=a.width/this.aa;a=a.height/this.fb;this.I.c().setAttribute("transform","scale("+d+" "+a+") translate("+b+" "+c+")")}}};
r.L=function(){if(!kb)return this.O?Ec(this.c()):vd.o.L.call(this);var a=this.width,b=this.height,c=u(a)&&a.indexOf("%")!=-1,d=u(b)&&b.indexOf("%")!=-1;if(!this.O&&(c||d))return l;var e,f;if(c){e=this.c().parentNode;f=Ec(e);a=parseFloat(a)*f.width/100}if(d){e=e||this.c().parentNode;f=f||Ec(e);b=parseFloat(b)*f.height/100}return new H(a,b)};r.clear=function(){this.I.clear();Ob(this.Yb);this.Kc={}};
r.Zb=function(a,b,c,d,e,f,h){a=xd(this,"ellipse",{cx:a,cy:b,rx:c,ry:d});e=new pd(a,this,e,f);this.R(e,h);return e};r.drawImage=function(a,b,c,d,e,f){a=xd(this,"image",{x:a,y:b,width:c,height:d,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});a.setAttributeNS("http://www.w3.org/1999/xlink","href",e);e=new ud(a,this);this.R(e,f);return e};
r.$b=function(a,b,c,d,e,f,h,j,k,m){var n=Math.atan2(e-c,d-b)*180/Math.PI%360;n=Math.round(n*360<0?n+360:n);d=d-b;e=e-c;e=Math.round(Math.sqrt(d*d+e*e));var q=h.size;d={"font-family":h.Va,"font-size":q};q=Math.round(c-q/2+Math.round(q*0.85));var p=b;if(f=="center"){p+=Math.round(e/2);d["text-anchor"]="middle"}else if(f=="right"){p+=e;d["text-anchor"]="end"}d.x=p;d.y=q;if(h.bold)d["font-weight"]="bold";if(h.gc)d["font-style"]="italic";if(n!=0)d.transform="rotate("+n+" "+b+" "+c+")";b=xd(this,"text",
d);b.appendChild(this.ka.Y.createTextNode(a));if(j==l&&kb&&ob){a="black";if(k instanceof hd)a=k.C;j=new C(1,a)}k=new td(b,this,j,k);this.R(k,m);return k};r.Ga=function(a,b,c,d){a=xd(this,"path",a.Fb()?{}:{d:sd(a)});b=new rd(a,this,b,c);this.R(b,d);return b};
function sd(a){var b=[];wc(a,function(c,d){switch(c){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,Math.abs(e)>180?1:0,e>0?1:0,d[4],d[5]);break;case 4:b.push("Z")}});return b.join(" ")}
r.wb=function(a,b){var c=Fb(),d=c.U("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};r.Aa=function(){var a=this.L();vd.o.Aa.call(this);a||this.dispatchEvent("resize");if(this.Cc){a=this.width;var b=this.height;typeof a=="string"&&a.indexOf("%")!=-1&&typeof b=="string"&&b.indexOf("%")!=-1&&Hc(this.Ka,yd(),nd,this.Sb);this.Sb()}};
r.ib=function(){vd.o.ib.call(this);this.Cc&&Ic(this.Ka,yd(),nd,this.Sb)};r.g=function(){delete this.Kc;delete this.Yb;delete this.I;vd.o.g.call(this)};function yd(){if(!wd){wd=new ld(400);wd.start()}return wd};function zd(){return this.j=this.h.ka.c(this.Ba)||this.j}function Ad(a,b){this.Ba=a.id;R.call(this,a,b)}w(Ad,Vc);Ad.prototype.c=zd;Ad.prototype.clear=function(){Ob(this.c())};function Bd(a,b,c,d,e,f,h,j){this.Ba=a.id;S.call(this,a,b,h,j);this.Gc=c;this.Ic=d;this.lc=e;this.nc=f}w(Bd,Uc);Bd.prototype.c=zd;Bd.prototype.qc=function(a,b){this.Gc=a;this.Ic=b;Cd(this.c(),a-this.lc,b-this.nc,this.lc*2,this.nc*2)};Bd.prototype.xc=function(a,b){this.lc=a;this.nc=b;Cd(this.c(),this.Gc-a,this.Ic-b,a*2,b*2)};
function Dd(a,b,c,d){this.Ba=a.id;S.call(this,a,b,c,d)}w(Dd,Xc);Dd.prototype.c=zd;Dd.prototype.ra=function(a){Ed(this.c(),"path",Fd(a))};function Gd(a,b,c,d){this.Ba=a.id;S.call(this,a,b,c,d)}w(Gd,Yc);Gd.prototype.c=zd;function Hd(a,b){this.Ba=a.id;R.call(this,a,b)}w(Hd,Wc);Hd.prototype.c=zd;function Id(a,b,c,d,e){Q.call(this,a,b,c,d,e);this.Ka=new Fc(this)}w(Id,Q);var Jd=document.documentMode&&document.documentMode>=8;function Kd(a){var b;if(b=u(a)){b=a.length-1;b=b>=0&&a.indexOf("%",b)==b}return b?a:parseFloat(a.toString())+"px"}function T(a){return Math.round((parseFloat(a.toString())-0.5)*100)}function U(a){return Math.round(parseFloat(a.toString())*100)}function Ed(a,b,c){if(Jd)a[b]=c;else a.setAttribute(b,c)}
function V(a,b){var c=a.ka.createElement("g_vml_:"+b);c.id="goog_"+za++;return c}function Ld(a){if(Jd)if(a.nb)a.lb=i;else if(a.O)a.c().innerHTML=a.c().innerHTML}r=Id.prototype;r.Qb=function(){this.nb=i};r.Mb=function(){this.nb=o;if(this.lb){this.lb=o;Ld(this)}};r.R=function(a,b){(b||this.I).c().appendChild(a.c());Ld(this)};
r.rc=function(a,b){var c=a.c();c.fillcolor="";for(var d=0;d<c.childNodes.length;d++){var e=c.childNodes[d];e.tagName=="fill"&&c.removeChild(e)}if(b instanceof hd)if(b.C=="transparent")c.filled=o;else if(b.mb!=1){c.filled=i;d=V(this,"fill");d.opacity=Math.round(b.mb*100)+"%";d.color=b.C;c.appendChild(d)}else{c.filled=i;c.fillcolor=b.C}else c.filled=o;Ld(this)};
r.sc=function(a,b){var c=a.c();if(b){c.stroked=i;var d=b.Q;if(u(d)&&d.indexOf("px")==-1)d=parseFloat(d);else d*=Qc(this);var e=c.getElementsByTagName("stroke")[0];if(d<1){e=e||V(this,"stroke");e.opacity=d;e.ne="1px";e.color=b.C;c.appendChild(e)}else{e&&c.removeChild(e);c.strokecolor=b.C;c.strokeweight=d+"px"}}else c.stroked=o;Ld(this)};r.tc=function(a,b,c,d,e,f){a=a.c();a.style.left=T(b)+"px";a.style.top=T(c)+"px";if(d||a.rotation){a.rotation=d;a.coordsize=U(e*2)+" "+U(f*2)}};
function Cd(a,b,c,d,e){var f=a.style;f.position="absolute";f.left=T(b)+"px";f.top=T(c)+"px";f.width=U(d)+"px";f.height=U(e)+"px";if(a.tagName=="shape")a.coordsize=U(d)+" "+U(e)}function Md(a,b){var c=V(a,b),d=Pc(a);Cd(c,0,0,d.width,d.height);return c}try{eval("document.namespaces")}catch(Nd){}r=Id.prototype;
r.U=function(){var a=this.ka.Y;if(!a.namespaces.g_vml_){Jd?a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML"):a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml");a.createStyleSheet().cssText="g_vml_\\:*{behavior:url(#default#VML)}"}a=this.width;var b=this.height,c=this.ka.U("div",{style:"overflow:hidden;position:relative;width:"+Kd(a)+";height:"+Kd(b)});this.j=c;var d=V(this,"group"),e=d.style;e.position="absolute";e.left=e.top=0;e.width=this.width;e.height=this.height;
d.coordsize=this.aa?U(this.aa)+" "+U(this.fb):U(a)+" "+U(b);d.coordorigin=this.za!==undefined?U(this.za)+" "+U(this.Fa):"0 0";c.appendChild(d);this.I=new Ad(d,this);mc(c,"resize",na(this.fc,this))};r.fc=function(){var a=Ec(this.c()),b=this.I.c().style;if(a.width){b.width=a.width+"px";b.height=a.height+"px"}else{for(a=this.c();a&&a.currentStyle&&a.currentStyle.display!="none";)a=a.parentNode;a&&a.currentStyle&&Hc(this.Ka,a,"propertychange",this.fc)}this.dispatchEvent("resize")};
r.L=function(){var a=this.c();return new H(a.style.pixelWidth||a.offsetWidth||1,a.style.pixelHeight||a.offsetHeight||1)};r.clear=function(){this.I.clear()};r.Zb=function(a,b,c,d,e,f,h){var j=V(this,"oval");Cd(j,a-c,b-d,c*2,d*2);a=new Bd(j,this,a,b,c,d,e,f);this.R(a,h);return a};r.drawImage=function(a,b,c,d,e,f){var h=V(this,"image");Cd(h,a,b,c,d);Ed(h,"src",e);a=new Hd(h,this);this.R(a,f);return a};
r.$b=function(a,b,c,d,e,f,h,j,k,m){var n=Md(this,"shape"),q=V(this,"path");b="M"+T(b)+","+T(c)+"L"+T(d)+","+T(e)+"E";Ed(q,"v",b);Ed(q,"textpathok","true");b=V(this,"textpath");b.setAttribute("on","true");c=b.style;c.fontSize=h.size*Qc(this);c.fontFamily=h.Va;if(f!=l)c["v-text-align"]=f;if(h.bold)c.fontWeight="bold";if(h.gc)c.fontStyle="italic";Ed(b,"string",a);n.appendChild(q);n.appendChild(b);a=new Gd(n,this,j,k);this.R(a,m);return a};
r.Ga=function(a,b,c,d){var e=Md(this,"shape");Ed(e,"path",Fd(a));a=new Dd(e,this,b,c);this.R(a,d);return a};
function Fd(a){var b=[];wc(a,function(c,d){switch(c){case 0:b.push("m");Array.prototype.push.apply(b,Oa(d,U));break;case 1:b.push("l");Array.prototype.push.apply(b,Oa(d,U));break;case 2:b.push("c");Array.prototype.push.apply(b,Oa(d,U));break;case 4:b.push("x");break;case 3:var e=d[2]+d[3],f=U(d[4]-d[0]*Math.cos(E(e)));e=U(d[5]-d[1]*Math.sin(E(e)));var h=U(d[0]),j=U(d[1]);b.push("ae",f,e,h,j,Math.round(d[2]*-65536),Math.round(d[3]*-65536))}});return b.join(" ")}
r.wb=function(a,b){var c=Fb(),d=c.U("div",{style:"position:absolute; visibility:hidden; font-family:"+b.Va+"; font-size:"+b.size+"px;"});document.body.appendChild(d);d.innerHTML=a;var e=d.offsetWidth;c.removeNode(d);return e};r.Aa=function(){Id.o.Aa.call(this);this.fc();Ld(this)};r.g=function(){this.I=l;Id.o.g.call(this)};function Od(a){this.qa=a}function Pd(a,b,c,d,e){var f=a.qa.left,h=a.qa.left+a.qa.width,j=a.qa.top+a.qa.height;a=a.qa.top;var k=0,m=1;d=d-b;e=e-c;for(var n,q,p,z=0;z<4;z++){if(z===0){n=-d;q=-(f-b)}if(z===1){n=d;q=h-b}if(z===2){n=e;q=j-c}if(z===3){n=-e;q=-(a-c)}p=q/n;if(n===0&&q<0)break;if(n<0)if(p>m)break;else{if(p>k)k=p}else if(n>0)if(p<k)break;else if(p<m)m=p}return[b+k*d,c+k*e,b+m*d,c+m*e]};function Qd(){this.cc=l;this.Wc=this.Oa=this.Pa=o}Qd.prototype.Pb=function(a){this.min=a;this.Pa=i};Qd.prototype.Ob=function(a){this.max=a;this.Oa=i};function Rd(a,b){a.cc=b}function Sd(a){if(!a.M){a.M=i;a.Vc()}}function Td(a,b){return a.cc?a.cc(a.gb(b)):String(a.gb(b))}Qd.prototype.wa=function(a,b){return this.T(a,b)===0};function Ud(a){this.N=[];this.Tb=[];this.Ta=a}function Vd(a,b){return b>=0?new B(new Date(a.N[b])):new B(new Date(0))};function Wd(){Qd.call(this);this.sa=new B(1990,6,22,8,0,0,0);Xd(this);this.ba=new B(1990,6,22,17,0,0,0);Yd(this);this.min=new B(new Date);this.min.add(new y(0,0,-1));this.max=new B(new Date);this.Ea=new Ud(this)}w(Wd,Qd);r=Wd.prototype;r.Vc=function(){for(var a=this.Ea,b=new B(2007,0,1,a.Ta.sa.getHours(),a.Ta.sa.getMinutes(),a.Ta.sa.getSeconds()),c=Zd(a.Ta,b,new B(new Date(0))),d=new B(new Date),e=new y(0,0,1),f=0;b.getTime()<d.getTime();){if(!$d(a.Ta,b)){a.N[f]=b.getTime();a.Tb[f]=c;c+=a.Ta.oa;f++}b.add(e)}};
r.Pb=function(a){a=new B(a);ae(this,a)||(a=be(this,a));Wd.o.Pb.call(this,a);this.oa=(this.ba.getHours()-this.sa.getHours()+(this.ba.getMinutes()-this.sa.getMinutes())/60)*36E5;this.Ib=this.oa*5;this.be=ce(this,this.min);this.le=ce(this,this.min).getTime()-this.min.getTime();this.ce=de(this,this.min);this.me=ee(this,this.min);this.ke=Ka(this.min);this.Id=this.min.getDate();this.Ld=this.min.getFullYear();this.Jd=this.min.getMonth();this.Kd=this.min.getTime()};
r.Ob=function(a){a=new B(a);ae(this,a)||(a=be(this,a));Wd.o.Ob.call(this,a)};function fe(a,b){a.sa=b;Xd(a);a.M=o}function ge(a,b){a.ba=b;Yd(a);a.Wc=o}r.Nc=function(){return this.normalize(new B(8888,11,30,12,0,0,333))};function Xd(a){a.Ma=a.sa.getHours();a.ob=a.sa.getMinutes();a.md=a.sa.getSeconds()}function Yd(a){a.tb=a.ba.getHours();a.ac=a.ba.getMinutes();a.yd=a.ba.getSeconds()}
r.ld=function(a){var b=(this.max.getTime()-this.Kd)/a;a=Math.floor(b/315576E5);b-=a*315576E5;var c=Math.floor(b/26298E5);b-=c*26298E5;var d=Math.floor(b/864E5);b-=d*864E5;var e=Math.floor(b/36E5);b-=e*36E5;b=Math.floor(b/6E4);var f=new y(0);if(a>1)f.z=a+1;else if(a>1||a===1&&c>0)f.t=18;else if(c>6||c===6&&d>0)f.z=1;else if(c>3||c===3&&d>0)f.t=6;else if(c>1||c===1&&d>0)f.t=3;else if(d>14||d===14&&e>0||c>0)f.t=1;else if(d>5||d===5&&e>0)f.p=10;else if(d>2||d===2&&e>0)f.p=5;else if(d>1||d===1&&e>0)f.p=
2;else if(e>6||e===6&&b>0||d===1)f.p=1;else if(e>2||e===2&&b>0)f.A=6;else if(e>1||e===1&&b>0)f.A=2;else if(b>=30||e===1)f.A=1;else f.B=b>=15?30:b>=10?15:b>=5?10:b>=1?5:1;this.D=f};function de(a,b){var c=new y(0,0,5-b.getDay()),d=new B(b);d.add(c);d.setHours(a.ba.getHours());d.setMinutes(a.ba.getMinutes());d.setSeconds(a.ba.getSeconds());d.setMilliseconds(a.ba.getMilliseconds());return d}function ce(a,b){return new B(b.getFullYear(),b.getMonth(),b.getDate(),a.tb,a.ac,a.yd,a.ba.getMilliseconds())}
function ee(a,b,c){c=c||de(a,b);return Math.floor((c.getTime()-b.getTime())/864E5)*a.oa}function he(a,b){var c=b.getHours();return c>a.tb||c===a.tb&&b.getMinutes()>a.ac?i:o}function ae(a,b){var c=b.getHours();return!(c<a.Ma||c===a.Ma&&b.getMinutes()<a.ob||he(a,b)||$d(a,b))}function $d(a,b){var c=b.getDay();return c===6||c===0}
function be(a,b){if(ae(a,b))return b;var c=new B(b),d=o;if($d(a,c)||c.getDay()===5&&he(a,c)){d=new y(0,0,0,0,0,0);d.p=c.getDay()===0?1:7-Math.abs(1-c.getDay());c.add(d);d=i}he(a,c)&&!d&&c.add(new y(0,0,1,0,0,0));c.setHours(a.Ma);c.setMinutes(a.ob);c.setSeconds(0);c.setMilliseconds(0);return c}
function Zd(a,b,c){if(b.od>-1)return b.od;var d=c.getTime(),e=b.getTime();if(e===d)return 0;var f=c||new Date,h;if(h=b.getDate()==f.getDate()){f=f||new Date;if(h=b.getMonth()==f.getMonth()){f=f||new Date;h=b.getFullYear()==f.getFullYear()}h=h}if(h)a=e-d;else{var j=ce(a,c);d=(j||ce(a,c)).getTime()-c.getTime();f=de(a,c);h=ee(a,c,f);var k=new B(b.getFullYear(),b.getMonth(),b.getDate(),a.Ma,a.sa.getMinutes(),a.md,0),m=k.getTime();e=e-m;if(Ka(b)===Ka(c)&&b.getFullYear()===c.getFullYear())a=d+a.oa*Math.floor((m-
j.getTime())/864E5)+e;else{c=new y(0,0,1-k.getDay(),0,0,0);k=new B(k.getFullYear(),k.getMonth(),k.getDate(),a.Ma,a.ob,a.md,0);k.add(c);a=d+h+Math.floor((m-f.getTime())/6048E5)*a.Ib+Math.floor((m-k.getTime())/864E5)*a.oa+e}}return b.od=a}r.normalize=function(a){var b=new B(new Date(a));ae(this,a)||(b=be(this,b));var c=Math.abs(Ua(this.Ea.N,b.getTime())+1)-1;a=Vd(this.Ea,c);c=this.Ea.Tb[c];if(!(c>-1))return Zd(this,b,new B(new Date(0)));return c+Zd(this,b,a)};
r.ec=function(){var a=new B(this.Ld,this.Jd,this.Id,this.Ma,this.ob,0,0),b=new y(0,0,0,0,0,0);if(this.D.z>0){a.setMonth(0);a.setDate(1);b.z=1}else if(this.D.t>0){a.setDate(1);b.t=1}else if(this.D.p>0)b.p=1;else if(this.D.A>0){a.setHours(this.min.getHours());a.setMinutes(0);b.A=1}else{a.setMinutes(this.D.B*Math.round(this.min.getMinutes()/this.D.B));b.B=this.D.B}a.wa(this.min)||a.add(b);return this.normalize(a)};
r.Uc=function(a){a=this.gb(a);new B(a);if(this.D.z>0||this.D.t>0){this.D.z>0&&a.setMonth(0);a.setDate(1);a.add(this.D);return this.normalize(be(this,a))}return this.normalize(ie(this,a,this.D))};r.gb=function(a){var b=Math.abs(Ua(this.Ea.Tb,a)+1)-1,c=Vd(this.Ea,b);if(a===0)return c;return je(this,c,a-this.Ea.Tb[b])};function ie(a,b,c){var d=c.p*a.oa;Ba(c.z==0&&c.t==0);return je(a,b,d+((((c.p*24+c.A)*60+c.B)*60+c.P)*1E3-864E5*c.p))}
function je(a,b,c){var d=b.getTime(),e=ce(a,b).getTime()-b.getTime();b=ee(a,b);d+=e+b/a.oa*864E5;c-=e+b;d+=Math.floor(c/a.Ib)*6048E5;c-=Math.floor(c/a.Ib)*a.Ib;d+=(24-(a.tb+a.ac/60))*36E5+1728E5+(a.Ma+a.ob/60)*36E5;d+=Math.floor(c/a.oa)*864E5;c-=Math.floor(c/a.oa)*a.oa;d+=c;return new B(new Date(d))}r.T=function(a,b){return a.getTime()>b.getTime()?1:a.getTime()<b.getTime()?-1:0};r.dd=aa();r.ed=aa();r.dc=function(){var a=new B(new Date);a.add(new y(0,0,-1));return[a,new B(new Date)]};function ke(a){this.f=new W(a,l,l,l);this.i=new N;this.Sa=new N;this.rd=new W(a,l,l,l)}function le(a,b){a.f.K(b)}function me(a,b){a.rd.K(b)}
ke.prototype.u=function(a,b,c){this.rect=a;this.v=b;this.m=c;this.i.clear();this.Sa.clear();for(a=0;a<this.v.s.length;a++){this.i.moveTo(this.v.s[a].ga[0],this.rect.top);this.i.lineTo(this.v.s[a].ga[0],this.rect.top+this.rect.height)}for(a=0;a<this.m.s.length;a++)if(this.m.db!==this.m.s[a]){this.i.moveTo(this.rect.left,this.m.s[a].ga[1]);this.i.lineTo(this.rect.left+this.rect.width,this.m.s[a].ga[1])}else{this.Sa.moveTo(this.rect.left,this.m.db.ga[1]);this.Sa.lineTo(this.rect.left+this.rect.width,
this.m.db.ga[1])}this.Bd.ra(this.i);this.Sa.Fb()&&this.Sa.moveTo(0,0);this.$d.ra(this.Sa)};ke.prototype.Da=function(a){this.Bd=a.Ga(this.i,this.f.r(),l);this.$d=a.Ga(this.Sa,this.rd.r(),l)};function W(a,b,c,d){this.pa=a;this.bb=!a&&!b?new C(1,"#000000"):b;this.jb=!a&&!c?new fd(13,"Arial"):c;this.bc=!a&&!d?"#000000":d}W.prototype.r=function(){if(this.bb)return this.bb;return this.pa.r()};W.prototype.K=function(a){this.bb=a};function ne(a){if(a.jb)return a.jb;return ne(a.pa)}function oe(a){if(a.bc)return a.bc;return oe(a.pa)};function pe(a,b){this.M=o;this.La=this.jd=i;this.Qd=o;this.f=new W(l,l,l,l);this.id=a;this.q=b;this.Wb=this.q[this.q.length-1];this.Zc=this.q[this.q.length-1];this.ae=this.ie=o}w(pe,I);r=pe.prototype;r.K=function(a){this.f.K(a)};r.xb=function(a,b){var c,d,e=a?qe(this,a,0,this.q)-1:0,f=b?qe(this,b,0,this.q):this.q.length-1;for(e=e<=0?0:e-1;e<=f;e++){var h=this.q[e][1];if(!c||this.ya.axis.T(h,c)<0)c=h;if(!d||this.ya.axis.T(h,d)>0)d=h}return[c,d]};
r.u=function(a,b,c,d){if(!this.M){this.kb(a,b,c,d);this.M=i}if(this.La&&this.q.length>0){re(this);this.i.clear();a=[];b=[];c=0;for(d=this.q.length;c<d;c++){if(!this.Jb||this.ya.axis.T(this.q[c][1],this.Jb[1])<0)this.Jb=this.q[c];if(!this.Hb||this.ya.axis.T(this.q[c][1],this.Hb[1])>0)this.Hb=this.q[c];b[c]=this.q[c][0]}b=se(this.xa,b);for(c=0;c<b.length;c++)if(b[c])a[a.length]=new G(b[c],X(this.ya,this.q[c][1]));b=this.$;c=new N;var e=o,f=[];f=a[0];var h;h=b.qa.contains(f)?o:i;for(var j=1;j<a.length;j++){d=
a[j];if(b.qa.contains(d))if(h){f=Pd(b,d.x,d.y,f.x,f.y);c.moveTo(f[2],f[3]);c.lineTo(d.x,d.y);h=o;e=i}else if(e)c.lineTo(d.x,d.y);else{c.moveTo(f.x,f.y);c.lineTo(d.x,d.y);e=i}else{if(h){f=Pd(b,f.x,f.y,d.x,d.y);c.moveTo(f[0],f[1]);b.qa.contains(new G(f[2],f[3]))?c.lineTo(f[2],f[3]):c.moveTo(f[2],f[3])}else{c.moveTo(f.x,f.y);f=Pd(b,f.x,f.y,d.x,d.y);c.lineTo(f[2],f[3]);c.moveTo(d.x,d.y)}h=e=i}f=d}this.i=c;this.hb.ra(this.i);if(this.Qd){this.$c.u(X(this.xa,this.Jb[0]),X(this.ya,this.Jb[1]));this.Sc.u(X(this.xa,
this.Hb[0]),X(this.ya,this.Hb[1]));this.Yc.u(X(this.xa,this.Zc[0]),X(this.ya,this.Zc[1]))}}};function re(a){a.jd&&a.Ac.u(X(a.xa,a.Wb[0]),X(a.ya,a.Wb[1]))}
r.kb=function(a,b,c,d){this.$=d;this.i=new N;this.h=a;this.Dd=new C(this.f.r().Q*3,this.f.r().C);b=ab(Xa(this.f.r().C),0.5);this.wd=new C(this.f.r().Q,Za(b[0],b[1],b[2]));this.hb=a.Ga(this.i,this.f.r(),l);this.Ac=new Y(a,this.f);this.Ac.K(new C(2,this.f.r().C));this.Sc=new Y(a,this.f);this.Sc.K(new C(1,"#007F00"));this.$c=new Y(a,this.f);this.$c.K(new C(1,"#FA0B0B"));this.Yc=new Y(a,this.f);this.Yc.K(new C(1,"#0000FF"))};
function qe(a,b,c,d){var e=Math.abs(Ua(d,b,function(h,j){return a.xa.axis.T(h,j[c])})+1);e=e>=d.length?d.length-1:e;if(e>0){var f=a.xa.axis.normalize(b);b=f-a.xa.axis.normalize(d[e-1][c]);d=a.xa.axis.normalize(d[e][c])-f;if(b<d)e-=1}return e}r.g=function(){pe.o.g.call(this);if(this.M){this.i.clear();Pb(this.hb.c());this.Ac.ja()}};
function Y(a,b){this.f=new W(b,l,l,l);this.Dd=new C(this.f.r().Q*3,this.f.r().C);var c=ab(Xa(this.f.r().C),0.5);this.wd=new C(this.f.r().Q,Za(c[0],c[1],c[2]));this.h=a;this.M=o;this.La=i}w(Y,I);Y.prototype.K=function(a){this.f.K(a)};Y.prototype.u=function(a,b){if(!this.M){this.kb();this.M=i}this.Ub.qc(a,b)};Y.prototype.kb=function(){this.zd=new hd(this.f.r().C);this.Ub=this.h.Zb(-10,-10,Number(this.f.r().Q),Number(this.f.r().Q),this.f.r(),this.zd)};
Y.prototype.g=function(){if(this.M){this.Ub.xc(0,0);Pb(this.Ub.c())}};function Z(a,b,c){this.e=c;this.axis=a;this.s=[]}w(Z,I);
Z.prototype.u=function(a){this.a=a;this.S=0;if(this.e===$){this.H=[this.a.left,this.a.top];this.J=[this.a.left+this.a.width,this.a.top];this.S=this.J[0]-this.H[0]}if(this.e===te){this.H=[this.a.left,this.a.top];this.J=[this.a.left+this.a.width,this.a.top];this.S=this.J[0]-this.H[0]}if(this.e===ue){this.H=[this.a.left,this.a.top+this.a.height];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.S=this.J[0]-this.H[0]}if(this.e===ve){this.H=[this.a.left,this.a.top+this.a.height];this.J=[this.a.left+
this.a.width,this.a.top+this.a.height];this.S=this.J[0]-this.H[0]}if(this.e===we){this.H=[this.a.left,this.a.top];this.J=[this.a.left,this.a.top+this.a.height];this.S=this.J[1]-this.H[1]}if(this.e===xe){this.H=[this.a.left+this.a.width,this.a.top];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.S=this.J[1]-this.H[1]}if(this.e===ye){this.H=[this.a.left+this.a.width,this.a.top];this.J=[this.a.left+this.a.width,this.a.top+this.a.height];this.S=this.J[1]-this.H[1]}if(this.e===ze){this.H=
[this.a.left,this.a.top];this.J=[this.a.left,this.a.top+this.a.height];this.S=this.J[1]-this.H[1]}this.Kb=this.axis.normalize(this.axis.min);this.cd=this.axis.normalize(this.axis.max);this.gd();this.hd()};function Ae(a){return a.e===ue||a.e===te||a.e===$||a.e===ve}function Be(a){return a.e===we||a.e===ye||a.e===xe||a.e===ze}
function se(a,b){var c=[],d=Math.abs(Ua(b,a.axis.min,function(f,h){return a.axis.T(f,h)})+1);d=d<=0?0:d-1;var e=Math.abs(Ua(b.slice(d,b.length),a.axis.max,function(f,h){return a.axis.T(f,h)})+1)+d;e=e>=b.length-1?b.length-1:e+1;for(d=d;d<=e;d++)c[d]=X(a,b[d]);return c}function X(a,b){return Ce(a,a.axis.normalize(b))}
function Ce(a,b){b=(b-a.Kb)/(a.cd-a.Kb);if(Ae(a))return Math.floor(a.S*b+a.a.left);else if(Be(a))return Math.floor(a.height-a.S*b-(a.height-(a.a.top+a.a.height)));else g("INVALID_ORIENTATION "+a.e)}Z.prototype.g=function(){Z.o.g.call(this)};var ue=0,te=1,we=2,ye=3,$=4,ve=5,xe=6,ze=7;function De(a,b){Z.call(this,a,l,b);this.X=0}w(De,Z);r=De.prototype;r.hd=t;r.vb=function(){return 0};r.ub=function(){return 0};r.pc=t;r.uc=t;r.vc=t;r.g=function(){De.o.g.call(this)};r.Da=ba();r.gd=ba();function Ee(){Qd.call(this);this.min=0;this.max=1}w(Ee,Qd);r=Ee.prototype;r.ld=function(a){a=(this.max-this.min)/a;var b=Math.abs(this.max-this.min)/10,c=0;if(b<1)for(b=b;b<1;b*=10)c++;else for(b=b;b>=10;b/=10)c--;this.D=Math.ceil(a*Math.pow(10,c))/Math.pow(10,c)};r.gb=aa();r.Nc=function(){return this.normalize(this.max)*-10.1};r.Vc=t;r.normalize=function(a){return Number(a)};r.ec=function(){return this.normalize(this.min)};r.Uc=function(a){return a+this.D};
r.ec=function(){return Math.ceil(this.min/this.D)*this.D};r.dd=function(a,b,c){return a+(c&&b?c-b:this.max-this.min)*0.05};r.ed=function(a,b,c){return a-(c&&b?c-b:this.max-this.min)*0.05};r.T=function(a,b){return a>b?1:b>a?-1:0};r.dc=function(){return[0,1]};function Fe(a,b,c,d,e,f){this.Gd=b;this.M=o;this.f=e;this.Dc=f;this.cb=a;this.Qa=b.left;this.Ra=b.top;this.Q=b.width;this.Bb=b.height;this.eb=c;this.hc=l;this.ga=[];if(this.eb===Ge){this.ga[0]=this.Qa+this.Q/2;this.ga[1]=this.Ra}else if(this.eb===He){this.ga[0]=this.Qa+this.Q;this.ga[1]=this.Ra+this.Bb/2}this.Rb=d}w(Fe,I);
Fe.prototype.Da=function(a){this.M=i;this.h=a;this.yc=new hd(oe(this.f));this.zc=new C(0,oe(this.f));var b=this.Dc===$||this.Dc===te?"bottom":"top";if(this.eb===Ge)this.hc=b==="bottom"?Rc(a,this.cb,this.Qa,this.Ra+this.Rb*1.1,this.Q,this.Bb-this.Rb,"center",b,ne(this.f),this.zc,this.yc):Rc(a,this.cb,this.Qa,this.Ra,this.Q,this.Bb-this.Rb,"center",b,ne(this.f),this.zc,this.yc);else if(this.eb===He)this.hc=Rc(a,this.cb,this.Qa,this.Ra,this.Q-this.Rb-3,this.Bb,"right","middle",ne(this.f),this.zc,this.yc);
else g("INVALID_ORIENTATION "+this.eb)};Fe.prototype.g=function(){Fe.o.g.call(this);this.M&&Pb(this.hc.c())};function Ie(a,b,c){Z.call(this,a,b,c);this.f=new W(b,l,l,l);this.Xa=new W(this.f,l,l,l);this.X=7;this.H=[];this.J=[];this.s=[];this.db=l;this.W=0;this.F=new N}w(Ie,Z);r=Ie.prototype;r.pc=function(a){this.f.K(a)};r.uc=function(a){this.Xa.jb=a};r.vc=function(a){this.Xa.bc=a};r.Da=function(a){this.Wa=a;this.height=this.Wa.L().height;this.xd=this.Wa.Ga(this.F,this.f.r(),l);this.i=new N;this.hb=this.Wa.Ga(this.i,this.f.r(),l)};
r.gd=function(){for(var a=0;a<this.s.length;a++)this.s[a].ja();this.s.length=0;this.db=l;if(Ae(this))this.W=this.vb()*1.1;else if(Be(this))this.W=this.ub()*1.1;else g("INVALID_ORIENTATION "+this.e);this.axis.ld(Math.floor(this.S/this.W));a=l;for(var b=Je(this),c=0;c<b.length;c++)if(Ae(this)){a=new O(Ce(this,b[c])-this.W/2,this.a.top,this.W,this.a.height);this.s[c]=new Fe(Td(this.axis,b[c]),a,Ge,this.X,this.Xa,this.e);if(Math.abs(Math.abs(b[c])-Number(0))<=1.0E-13)this.db=this.s[this.s.length-1]}else if(Be(this)){if(this.e===
we)a=new O(this.a.left,Ce(this,b[c])-this.W/2,this.a.width,this.W);if(this.e===xe)a=new O(0,Ce(this,b[c])-this.W/2,this.a.width,this.W);if(this.e===ye)a=new O(this.a.left,Ce(this,b[c])-this.W/2,this.a.width,this.W);if(this.e===ze)a=new O(this.a.left,Ce(this,b[c])-this.W/2,this.a.width,this.W);this.s[c]=new Fe(Td(this.axis,b[c]),a,He,this.X,this.Xa,this.e);if(Math.abs(Math.abs(b[c])-Number(0))<=1.0E-13)this.db=this.s[this.s.length-1]}else g("INVALID_ORIENTATION "+this.e)};
r.hd=function(){this.i.clear();this.F.clear();this.i.moveTo(this.H[0],this.H[1]);this.i.lineTo(this.J[0],this.J[1]);this.hb.ra(this.i);for(var a=0;a<this.s.length;a++){this.s[a].Da(this.Wa);var b=this.s[a].Gd;if(this.e===$){this.F.moveTo(b.left+b.width/2,b.top);this.F.lineTo(b.left+b.width/2,b.top+this.X)}if(this.e===te){this.F.moveTo(b.left+b.width/2,b.top);this.F.lineTo(b.left+b.width/2,b.top+this.X)}if(this.e===ue){this.F.moveTo(b.left+b.width/2,b.top+b.height);this.F.lineTo(b.left+b.width/2,b.top+
b.height-this.X)}if(this.e===ve){this.F.moveTo(b.left+b.width/2,b.top+b.height);this.F.lineTo(b.left+b.width/2,b.top+b.height-this.X)}if(this.e===we){this.F.moveTo(b.left,b.top+b.height/2);this.F.lineTo(b.left+this.X,b.top+b.height/2)}if(this.e===ze){this.F.moveTo(b.left,b.top+b.height/2);this.F.lineTo(b.left+this.X,b.top+b.height/2)}if(this.e===xe){this.F.moveTo(b.left+b.width,b.top+b.height/2);this.F.lineTo(b.left+b.width-this.X,b.top+b.height/2)}if(this.e===ye){this.F.moveTo(b.left+b.width,b.top+
b.height/2);this.F.lineTo(b.left+b.width-this.X,b.top+b.height/2)}}this.xd.ra(this.F)};function Je(a){var b=[],c=a.axis.ec(),d=a.axis.normalize(a.axis.max);for(c=c;c<=d;c=a.axis.Uc(c))b[b.length]=c;return b}r.vb=function(){var a=[];a=this.axis.D?Je(this):[this.axis.Nc()];for(var b=this.Wa.wb(Td(this.axis,a[0]),ne(this.Xa)),c=1;c<a.length;c++){var d=this.Wa.wb(Td(this.axis,a[c]),ne(this.Xa));if(d>b)b=d}return b};r.ub=function(){return ne(this.f).size};
r.g=function(){Ie.o.g.call(this);if(this.Wc){this.i.clear();Pb(this.hb.c());for(var a=0;a<this.s.length;a++)this.s[a].ja()}};function Ke(a,b,c,d){this.M=o;this.Sd=this.Rd=i;this.ua=u(a)?document.getElementById(a):a;a=b[0];b=b[1];b=F?new Id(a,b,void 0,void 0,void 0):lb&&(!xb("420")||mb)?new id(a,b,void 0,void 0,void 0):new vd(a,b,void 0,void 0,void 0);b.U();this.h=b;b=this.h.I;b.Bc=Tc(E(0),0,0).translate(0.5,0.5);b.h.tc(b,0.5,0.5,0,0,0);this.f=new W(l,l,l,l);this.l=c?new c:new Wd;this.w=d?new d:new Ee;this.k=[];this.v=this.Rd?new Ie(this.l,this.f,$):new De(this.l,$);this.m=this.Sd?new Ie(this.w,this.f,xe):new De(this.w,
xe);this.zb=new ke(this.f)}w(Ke,Kc);
Ke.prototype.u=function(){var a=this.l.wa(this.l.max,this.l.min),b=this.w.wa(this.w.min,this.w.max);if(!(this.l.Pa&&this.l.Oa)||a){for(var c,d,e,f,h=0;h<this.k.length;h++){e=this.k[h].La&&this.k[h].q.length>0?this.k[h].q[0][0]:l;f=this.k[h].La&&this.k[h].q.length>0?this.k[h].q[this.k[h].q.length-1][0]:l;if(e!==l&&(c===undefined||this.l.T(e,c)<0))c=e;if(f!==l&&(d===undefined||this.l.T(f,d)>0))d=f}c=c===undefined||d===undefined||this.l.wa(c,d)?this.l.dc():[c,d];if(!this.l.Pa||a){this.l.Pb(c[0]);this.l.Pa=
o}if(!this.l.Oa||a){this.l.Ob(c[1]);this.l.Oa=o}}if(!(this.w.Pa&&this.w.Oa)||b){a=this.xb();if(!this.w.Pa||b){this.w.Pb(a[0]);this.w.Pa=o}if(!this.w.Oa||b){this.w.Ob(a[1]);this.w.Oa=o}}Sd(this.w);Sd(this.l);if(!this.M){this.kb();this.M=i}this.h.Qb();this.l.D=l;this.w.D=l;b=Math.floor((this.v.ub()+this.v.X)*1.05);a=Math.floor((this.m.vb()+this.m.X)*1.1);c=Math.floor(this.m.ub()*1.05/2);d=Math.floor(this.v.vb()*1.05/2);e=new G;f=new G;h=new G;var j=this.h.L().width-2*d;if(this.m.e===we||this.m.e===
xe)j-=a;var k=this.h.L().height-2*c;if(this.v.e===ue||this.v.e===$)k-=b;if(this.m.e===we){e.x=d;e.y=c;h.x=j+d;f.x=d}if(this.m.e===xe){e.x=a;e.y=c;h.x=0;f.x=a}if(this.m.e===ye){e.x=d;e.y=c;h.x=d+j-a;f.x=d}if(this.m.e===ze){e.x=d;e.y=c;h.x=d;f.x=d}if(this.v.e===$){f.y=k+c;h.y=c;e.y=c}if(this.v.e===ue){f.y=0;h.y=b;e.y=b}if(this.v.e===te){f.y=0;h.y=0;e.y=0}if(this.v.e===ve){f.y=k-b+c;h.y=c;e.y=c}this.kc=new O(e.x,e.y,j,k);this.vd=new O(h.x,h.y,a,k);this.ud=new O(f.x,f.y,j,b);this.$.qa=this.kc;this.m.u(this.vd);
this.v.u(this.ud);this.zb.u(this.kc,this.v,this.m);for(b=0;b<this.k.length;b++)this.k[b].u(this.h,this.v,this.m,this.$);this.h.Mb()};
Ke.prototype.kb=function(){var a=this;Nc(this.h,this.ua);this.zb.Da(this.h);this.v.Da(this.h);this.m.Da(this.h);this.$=new Od(this.kc);mc(this.ua,"mousemove",function(b){var c=b.clientX,d=a.ua,e=new G;if(d.nodeType==1)if(d.getBoundingClientRect){var f=Ac(d);e.x=f.left;e.y=f.top}else{f=Qb(Fb(d));var h,j=Hb(d),k=zc(d,"position"),m=kb&&j.getBoxObjectFor&&!d.getBoundingClientRect&&k=="absolute"&&(h=j.getBoxObjectFor(d))&&(h.screenX<0||h.screenY<0),n=new G(0,0),q;h=j?j.nodeType==9?j:Hb(j):document;if(q=
F)q=Fb(h).Y.compatMode!="CSS1Compat";q=q?h.body:h.documentElement;if(d!=q)if(d.getBoundingClientRect){h=Ac(d);d=Qb(Fb(j));n.x=h.left+d.x;n.y=h.top+d.y}else if(j.getBoxObjectFor&&!m){h=j.getBoxObjectFor(d);d=j.getBoxObjectFor(q);n.x=h.screenX-d.screenX;n.y=h.screenY-d.screenY}else{h=d;do{n.x+=h.offsetLeft;n.y+=h.offsetTop;if(h!=d){n.x+=h.clientLeft||0;n.y+=h.clientTop||0}if(lb&&zc(h,"position")=="fixed"){n.x+=j.body.scrollLeft;n.y+=j.body.scrollTop;break}h=h.offsetParent}while(h&&h!=d);if(jb||lb&&
k=="absolute")n.y-=j.body.offsetTop;for(h=d;(h=Bc(h))&&h!=j.body&&h!=q;){n.x-=h.scrollLeft;if(!jb||h.tagName!="TR")n.y-=h.scrollTop}}e.x=n.x-f.x;e.y=n.y-f.y}else{e.x=d.clientX;e.y=d.clientY}c=c-e.x;e=a.v;f=e.cd-e.Kb;var p;if(Ae(e))p=(c-e.a.left)/e.S;else if(Be(e))p=(e.height-(c+(e.height-(e.a.top+e.a.height))))/e.S;else g("INVALID_ORIENTATION "+e.e);if(p<0)p=0;else if(p>1)p=1;p=e.axis.gb(e.Kb+p*f);a.h.Qb();for(c=0;c<a.k.length;c++){e=a.k[c];if(e.jd){e.Wb=e.q[qe(e,p,0,e.q)];e.La&&re(e)}}a.h.Mb();a.dispatchEvent(b)},
i)};Ke.prototype.xb=function(){for(var a,b,c,d,e=0;e<this.k.length;e++){c=this.k[e].La?this.k[e].xb(this.l.min,this.l.max)[0]:l;d=this.k[e].La?this.k[e].xb(this.l.min,this.l.max)[1]:l;if(c!==l&&(this.w.T(c,a)<0||a===undefined))a=c;if(d!==l&&(this.w.T(d,b)>0||b===undefined))b=d}return a===undefined||b===undefined||this.w.wa(a,b)?this.w.dc():[this.w.ed(a,a,b),this.w.dd(b,a,b)]};
function Le(a,b){a:for(var c=b.id,d=0;d<a.k.length;d++)if(a.k[d].id===c){c=a;d=d;c.k[d].ja();Sa(c.k,d,1);break a}b.xa=a.v;b.ya=a.m;a.k[a.k.length]=b}function Me(a,b){for(var c=0;c<a.k.length;c++)if(a.k[c].id===b)return a.k[c]}var Ge=0,He=1;function Ne(a){a=new Ke(a,[600,300]);fe(a.l,new B(1990,0,0,7,0,0,0));ge(a.l,new B(1990,0,0,15,30,0,0));a.v.pc(new C(1,"#999999"));a.m.pc(new C(1,"#999999"));a.v.uc(new fd(10,"Arial,helvetica,sans-serif"));a.m.uc(new fd(10,"Arial,helvetica,sans-serif"));a.v.vc("#0b333c");a.m.vc("#0b333c");le(a.zb,new C(1,"#ededed"));me(a.zb,new C(1,"#b0c1d0"));Rd(a.w,function(f){f=f.toFixed(2);if(f.indexOf("-0")!==-1)f=f.substring(1,f.length);return f+"%"});Rd(a.l,function(f){return x(f.getHours(),2)+":"+x(f.getMinutes(),
2)});var b=new B(2010,7,5,8,0,0,0),c=new B(2010,7,5,12,0,0,0),d=new B(2010,7,5,16,0,0,0),e=new pe("test",[[b,0],[c,10],[d,-5]]);e.K(new C(1,"#895b18"));Le(a,e);e=new pe("test2",[[b,5],[c,1],[d,10]]);e.K(new C(1,"#265e89"));Le(a,e);Le(a,new pe("test3",[[b,7],[c,-2],[d,0]]));Me(a,"test3").K(new C(1,"#669900"));a.u()}var Oe="scottlogic.chart.examples.example2.load".split("."),Pe=s;!(Oe[0]in Pe)&&Pe.execScript&&Pe.execScript("var "+Oe[0]);
for(var Qe;Oe.length&&(Qe=Oe.shift());)if(!Oe.length&&Ne!==undefined)Pe[Qe]=Ne;else Pe=Pe[Qe]?Pe[Qe]:Pe[Qe]={};
</script>
</head>
<body onload="scottlogic.chart.examples.example2.load('canvas')">
<div id="canvas"></div>
</body>
</html>
